home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
- "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
- <head>
- <title>MyServer Documentation - FastCGI - www.myserverproject.net</title>
- <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
- <meta http-equiv="Content-Style-Type" content="text/css" />
- <link rel="stylesheet" type="text/css" href="../style/myserver.css" />
- </head>
- <body>
- <table class="center" width="95%">
- <tr>
- <td class="center">
- <h1 class="title">FASTCGI<br />
- </h1>
- FastCGI is an extension to CGI, not dependent to the language
- used, providing high performance for applications, by not using server
- specific APIs. In FastCGI, you won't have a separate process for every
- script request. The communication with the MyServer process happens trough
- sockets.
- <br />
- <br />
- You can use FastCGI in MyServer, simply by setting the <a
- href="mimetypes.html" class="code">MIME Type</a> for your script
- language to run as
- FastCGI (set as <span class="code">RUNFASTCGI</span><span
- style="color: rgb(0, 102, 0);"></span>).<br />
- <br />
- Read the <a class="code" href="php.html">PHP</a> section
- on how using PHP+FastCGI.<br />
- <br />
- Like in CGI, you can place a <span class="code">cgi-bin</span>
- directory in the <span class="code">web</span> directory in MyServer
- as
- seen below, and put all your applications on it:<br />
- <br />
- <br />
- <div style="text-align: center;"><img src="../images/myfiles.png" title=""
- alt="Web folder" height="260" width="468" style="border: 1px solid #000000" />
- <br />
- </div>
- <div style="text-align: center;"><small>The cgi-bin folder is directly
- beneath the selected web folder.</small><br />
- </div>
- <br />
- <br />
- <br />
- However, CGI scripts can be placed anywhere as it is mapped to the web
- server through its extension. <br />
- <br />
- <br />
-
- <h2 class="title">Remote FastCGI Servers</h2>
- MyServer has the capability of using a remote FastCGI server.
- The following MIME type uses a remote connection:<br />
-
- <span class="code">
- <MIMETYPE><br />
- <EXT>php</EXT><br />
- <MIME>text/html</MIME><br />
- <CMD>RUNFASTCGI</CMD><br />
- <br />
- <MANAGER>@host:port</MANAGER><br />
- </MIMETYPE><br />
- </span>
- <br />
- The definition for a remote manager must begin with @.<br />
-
- If you are configuring the MIME types through the Control center
- application, you can add a remote server by adding a line in the form<br />
- <span class="code">@HOST:PORT </span>
- in the FastCGI path field.<br />
-
-
- <br />
- <br />
- Please refer to the official <a href="http://www.fastcgi.com/"
- target="_blank">FastCGI </a>site for
- more information about FastCGI.<br />
- <br />
- </td>
- </tr>
- </table>
- </body>
- </html>
-